//
//  Header.h
//  徙游记-01
//
//  Created by hcios on 2017/7/9.
//  Copyright © 2017年 鹿林. All rights reserved.
//

#ifndef Header_h
#define Header_h

//常用宏定义

#define screen_half_width [UIScreen mainScreen].bounds.size.width * 0.5
#define userPortrait_width 80
#define genderImageView_width 20
#define bottomButton_height 60
#define bottom_subButton_height 30
#define setupButton_width 24
#define view_userPortrait 63

#define PI 3.14159265358979323846
#define Image(ImageName) [UIImage imageNamed:ImageName]
#define SCREEN_HEIGHT [[UIScreen mainScreen] bounds].size.height
#define SCREEN_WIDTH [[UIScreen mainScreen] bounds].size.width
#define WiINDOW_HEIGHT  [UIScreen mainScreen].applicationFrame.size.height
#define WINDOW_WIDTH   [UIScreen mainScreen].applicationFrame.size.width



#define RGBA(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]
#define RGB(r,g,b) RGBA(r,g,b,1.0f)
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#define RECT_MAKE(Left, Top, Wideth, Hight) CGRectMake(Left, Top, Wideth, Hight)

#define USERDEFAULT [NSUserDefaults standardUserDefaults]

#define MAIN_DELEGATE ((AppDelegate *)[UIApplication sharedApplication])

#define IsNull(R) (R)?(R):@""

#define kIconMarginX 5
#define kIconMarginY 5
#define kContentStartMargin 25

/** 字体名*/
#define FONT_NAME_LTH                   @"FZLanTingHeiS-R-GB"

#endif /* Header_h */

